package com.example.administrator.waitan.login.register;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

import com.example.administrator.waitan.R;
import com.example.administrator.waitan.base.BaseActivity;
import com.example.administrator.waitan.login.LoginActivity;
import com.example.administrator.waitan.main.MainActivity;

/**
 * Created by Administrator on 2016/1/11.
 */
public class RegisterActivity extends BaseActivity implements View.OnClickListener {
    private EditText account,name,passWord,authCode;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_register);
        findViewById(R.id.btn_register_register).setOnClickListener(this);
        account = (EditText) findViewById(R.id.et_register_account);
        name = (EditText) findViewById(R.id.et_register_name);
        passWord = (EditText) findViewById(R.id.et_register_passWord);
        authCode = (EditText) findViewById(R.id.et_register_authCode);
    }

    @Override
    public void onClick(View view) {
        switch(view.getId()){
            case R.id.btn_register_register:
                Intent intent = new Intent(this, LoginActivity.class);
                intent.putExtra("account",account.getText().toString());
                intent.putExtra("passWord",passWord.getText().toString());
                startActivity(intent);
                break;
        }
    }
}
